package com.zuipin.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import io.swagger.annotations.ApiModelProperty;

/**
 * 
 * 
 * 
 **/
@SuppressWarnings("serial")
public class Prize implements Serializable {
	
	private Long				id;					// 主键
	
	private Long				levelId;			// 等级Id
	
	private Long				ruleId;				// 规则Id
	
	private Short				isDefault;			// 1 默认  0不是
	
	private String				title;				// 名称
	
	private BigDecimal			oneNum;				// 一次中几个
	
	private String				prompt;				// 提示语
	
	private String				prizeNo;			// 奖品的编码  可能是sku  也可能是红包
	
	private String				prizeType;			// 奖品类型
	
	private String				unit;				// 单位
	
	private Integer				prizeQuantity;		// 奖品总数量
	
	private String				promptUrl;			// 提示链接
	
	private BigDecimal			probability;		// 概率
	
	private String				abbreviation;		// 简称
	
	private Long				createId;			// 创建者
	
	private String				createTime;			// 创建时间
	
	private Long				updateId;			// 更新者
	
	private String				updateTime;			// 更新时间
	
	private Short				delFlag;			// 是否删除
	
	private Integer				usePrizeQuantity;	//已经中奖的个数
	
	public static final Short	DEFAULT_YES	= 1;	//是默认奖品
	public static final Short	DEFAULT_NO	= 0;	//不是默认奖品
	
	public void setId(Long id) {
		this.id = id;
	}
	
	@ApiModelProperty(value = "奖品ID")
	public Long getId() {
		return this.id;
	}
	
	public void setLevelId(Long levelId) {
		this.levelId = levelId;
	}
	
	@ApiModelProperty(value = "等级Id")
	public Long getLevelId() {
		return this.levelId;
	}
	
	public void setRuleId(Long ruleId) {
		this.ruleId = ruleId;
	}
	
	@ApiModelProperty(value = "规则id")
	public Long getRuleId() {
		return this.ruleId;
	}
	
	@ApiModelProperty(value = "默认奖品 1是  0不是", required = true)
	public Short getIsDefault() {
		return isDefault;
	}
	
	public void setIsDefault(Short isDefault) {
		this.isDefault = isDefault;
	}
	
	public void setTitle(String title) {
		this.title = title;
	}
	
	@ApiModelProperty(value = "奖品标题", required = true)
	public String getTitle() {
		return this.title;
	}
	
	public void setOneNum(BigDecimal oneNum) {
		this.oneNum = oneNum;
	}
	
	@ApiModelProperty(value = "一次中数量", required = true)
	public BigDecimal getOneNum() {
		return this.oneNum;
	}
	
	public void setPrompt(String prompt) {
		this.prompt = prompt;
	}
	
	@ApiModelProperty(value = "提示语")
	public String getPrompt() {
		return this.prompt;
	}
	
	public void setPrizeNo(String prizeNo) {
		this.prizeNo = prizeNo;
	}
	
	@ApiModelProperty(value = "奖品编码  sku或者规则id")
	public String getPrizeNo() {
		return this.prizeNo;
	}
	
	public void setPrizeType(String prizeType) {
		this.prizeType = prizeType;
	}
	
	@ApiModelProperty(value = "奖品类型  调用findPrizeType获取类型", required = true)
	public String getPrizeType() {
		return this.prizeType;
	}
	
	public void setUnit(String unit) {
		this.unit = unit;
	}
	
	@ApiModelProperty(value = "单位", required = false)
	public String getUnit() {
		return this.unit;
	}
	
	public void setPrizeQuantity(Integer prizeQuantity) {
		this.prizeQuantity = prizeQuantity;
	}
	
	@ApiModelProperty(value = "奖品总数量", required = true)
	public Integer getPrizeQuantity() {
		return this.prizeQuantity;
	}
	
	public void setPromptUrl(String promptUrl) {
		this.promptUrl = promptUrl;
	}
	
	@ApiModelProperty(value = "提示链接")
	public String getPromptUrl() {
		return this.promptUrl;
	}
	
	public void setProbability(BigDecimal probability) {
		this.probability = probability;
	}
	
	@ApiModelProperty(value = "中奖概率", required = true)
	public BigDecimal getProbability() {
		return this.probability;
	}
	
	public void setAbbreviation(String abbreviation) {
		this.abbreviation = abbreviation;
	}
	
	@ApiModelProperty(value = "简称", required = true)
	public String getAbbreviation() {
		return this.abbreviation;
	}
	
	public void setCreateId(Long createId) {
		this.createId = createId;
	}
	
	@ApiModelProperty(value = "创建id")
	public Long getCreateId() {
		return this.createId;
	}
	
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	
	@ApiModelProperty(value = "创建时间")
	public String getCreateTime() {
		return this.createTime;
	}
	
	public void setUpdateId(Long updateId) {
		this.updateId = updateId;
	}
	
	@ApiModelProperty(value = "更新 者id")
	public Long getUpdateId() {
		return this.updateId;
	}
	
	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}
	
	@ApiModelProperty(value = "更新时间")
	public String getUpdateTime() {
		return this.updateTime;
	}
	
	public void setDelFlag(Short delFlag) {
		this.delFlag = delFlag;
	}
	
	public Short getDelFlag() {
		return this.delFlag;
	}
	
	@ApiModelProperty(value = "已经中奖的个数")
	public Integer getUsePrizeQuantity() {
		return usePrizeQuantity;
	}
	
	public void setUsePrizeQuantity(Integer usePrizeQuantity) {
		this.usePrizeQuantity = usePrizeQuantity;
	}
	
}
